(echo "internal_styles.c: mkstyle.sh" ; ls style/*.style) >> /tmp/dep
echo Edit Makefile and bring in /tmp/dep
-VERSIONU=1_1_1_beta03072003
-VERSIOND=1.1.1_beta03072003
+VERSIONU=1_1_1_beta04162003
+VERSIOND=1.1.1_beta04162003
release:
rm -fr gpsbabel-$(VERSIOND)
cvs tag gpsbabel_$(VERSIONU)
field_map_t *fmp;
queue *elem, *tmp;
- if (wpt->shortname) {
- anyname = xstrdup(wpt->shortname);
- } else
- if (wpt->description) {
- anyname = mkshort(xcsv_file.mkshort_handle, wpt->description);
- } else
- if (wpt->notes) {
- anyname = xstrdup(wpt->notes);
- } else
- anyname = xstrdup("");
-
- if ((anyname) && (global_opts.synthesize_shortnames)) {
- char *oldname = anyname;
- anyname = mkshort(xcsv_file.mkshort_handle,
- wpt->notes ? wpt->notes : wpt->description);
- xfree(oldname);
- }
if ((! wpt->shortname) || (global_opts.synthesize_shortnames)) {
if (wpt->description) {
sprintf(buff, fmp->printfc, shortname);
} else
if (strcmp(fmp->key, "ANYNAME") == 0) {
+ if (wpt->shortname) {
+ anyname = xstrdup(wpt->shortname);
+ } else
+ if (wpt->description) {
+ anyname = mkshort(xcsv_file.mkshort_handle, wpt->description);
+ } else
+ if (wpt->notes) {
+ anyname = xstrdup(wpt->notes);
+ } else
+ anyname = xstrdup("");
+
+ if ((anyname) && (global_opts.synthesize_shortnames)) {
+ char *oldname = anyname;
+ anyname = mkshort(xcsv_file.mkshort_handle,
+ wpt->notes ? wpt->notes : wpt->description);
+ xfree(oldname);
+ }
+
sprintf(buff, fmp->printfc, anyname);
+
+ xfree(anyname);
} else
if (strcmp(fmp->key, "DESCRIPTION") == 0) {
sprintf(buff, fmp->printfc, description);
if (description)
xfree(description);
- if (anyname)
- xfree(anyname);
-
index++;
}
static char *snlenopt;
static char *snwhiteopt;
static char *snupperopt;
+static char *snuniqueopt;
char *xcsv_urlbase;
static
{"snlen", &snlenopt, "Max synthesized shortname length"},
{"snwhite", &snwhiteopt, "(0/1) Allow whitespace synth. shortnames"},
{"snupper", &snupperopt, "(0/1) UPPERCASE synth. shortnames"},
+ {"snunique", &snuniqueopt, "(0/1) Make synth. shortnames unique"},
{"urlbase", &xcsv_urlbase, "Basename prepended to URL on output"},
{0, 0, 0}
};
if (snupperopt)
setshort_mustupper(xcsv_file.mkshort_handle, atoi(snupperopt));
+ if (snuniqueopt)
+ setshort_mustuniq(xcsv_file.mkshort_handle, atoi(snuniqueopt));
+
setshort_badchars(xcsv_file.mkshort_handle, xcsv_file.badchars);
}